<script>
import Vue from 'vue'
export default {
  onLaunch: function() {
    uni.getSystemInfo({
      success: (e) => {
        // alert(JSON.stringify(e));
        Vue.prototype.safeHeight = e.safeArea.height;
        Vue.prototype.safeWidth = e.safeArea.width;
        Vue.prototype.systemPixelRatio = e.pixelRatio;
        // Vue.prototype.bottomBtnWrapHeight = 32 * e.pixelRatio;
        // Vue.prototype.systemWindowHeight = e.windowHeight;
        // Vue.prototype.systemPixelRatio = e.pixelRatio;
        // Vue.prototype.systemScreenWidth = e.screenWidth;
        // Vue.prototype.systemScreenHeight = e.screenHeight;
        // Vue.prototype.systemWindowTop = e.windowTop;
        // Vue.prototype.systemWindowBottom = e.windowBottom;
      }
    });
    // uni.getSystemInfo({
    // 	success: function(e) {
    // 		// #ifndef MP
    // 		Vue.prototype.StatusBar = e.statusBarHeight;
    // 		if (e.platform == 'android') {
    // 			Vue.prototype.CustomBar = e.statusBarHeight + 50;
    // 		} else {
    // 			Vue.prototype.CustomBar = e.statusBarHeight + 45;
    // 		};
    // 		// #endif
    // 		// #ifdef MP-WEIXIN
    // 		Vue.prototype.StatusBar = e.statusBarHeight;
    // 		let custom = wx.getMenuButtonBoundingClientRect();
    // 		Vue.prototype.Custom = custom;
    // 		Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
    // 		// #endif       
    // 		// #ifdef MP-ALIPAY
    // 		Vue.prototype.StatusBar = e.statusBarHeight;
    // 		Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
    // 		// #endif
    // 	}
    // })
  },
  onShow: function() {
    console.log('App Show')
  },
  onHide: function() {
    console.log('App Hide')
  }
}
</script>

<style lang="scss">
  @import './common/style/common.scss';
  @import './common/style/iconfont.css';
  page {
    background-color:#FAFAFA;
  }
  
  .uni-modal {
    border-radius: 20rpx;
    .uni-modal__bd {
      font-size: 32rpx;
      color: #666666;
    }
    .uni-modal__ft {
      height: 100rpx;
      padding: 20rpx 0;
      .uni-modal__btn {
        margin: 0 20rpx;
        border-radius: 12rpx;
        font-size: 24rpx;
        height: 60rpx;
        line-height: 60rpx;
      }
      .uni-modal__btn_default {
        // background-color: #E1E1E1;
        // color: #FFFFFF;
        color: #434343;
        background-color: #F6DA99;
      }
      
      .uni-modal__btn_primary {
        background-color: #434343;
        color: #F6DA99;
      }
      &:after {
        border-top: none;
      }
    }
  }
 
  .agree-radio {
    line-height: 0;
     .uni-radio-input {
       width: 30rpx;
       height: 30rpx;
       margin-right: 0;
     }
   }
   ::-webkit-scrollbar {
       display: none;  
       width: 0 !important;  
       height: 0 !important;  
       -webkit-appearance: none;  
       background: transparent;  
   }
   .uni-preview-image {
      max-width: 85%;
   }
   // 购物车，订单为空的样式
   .good-footer-ml {
     width: 100%;
     border-top: 1px solid #E1E1E1;
     padding: 14rpx 0 20rpx;
     background-color: #FFFFFF;
     position: absolute;
     bottom: 0;
     left: 0;
     button {
       height: 70rpx;
       margin: 0 32rpx;
       background-color: #636363;
       font-size: 30rpx;
       line-height: 70rpx;
       color: #ADA697;
       border: none !important;
       &.cur {
         color: #F6DA99;
         background-color: #434343;
       }
     }
   }
   .goot-empty-ml {
     text-align: center;
     font-size: 30rpx;
     font-family: PingFang SC;
     font-weight: 500;
     color: rgba(102,102,102,1);
     padding-top: 153rpx;
     image{
       display: block;
       width: 340rpx;
       height: 340rpx;
       margin: 0 auto;
     }
     .text1 {
       color: #333333;
       font-size: 38rpx;
       margin-bottom: 35rpx;
     }
   }
   
   uni-tabbar, uni-tabbar .uni-tabbar {
     z-index: 996;
   }
</style>